import { connect } from 'dva';
import withRouter from 'umi/withRouter';
import styles from './index.css';
import {Layout} from 'components';
const {Loading} = Layout;
function BasicLayout(props) {
  const {loading}=props
  const isLoading=loading.global;
  return (
    <div className={styles.normal}>
      <Loading tag={isLoading}/>
      { props.children }
    </div>
  );
}

export default withRouter(connect((loading)=>(loading))(BasicLayout));

// export default BasicLayout;
